Treat a partially visible line like "cursor off screen".
authorRichard M. Stallman <rms@gnu.org>
Sun, 7 Jul 2002 10:50:49 +0000 (10:50 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 7 Jul 2002 10:50:49 +0000 (10:50 +0000)
commit37efba4c7b82a90d5067bbad3639fbfa522b811d
tree46363599977666d9e893768ecf1fb083985b22d3
parent105ea2bd654e7fd5b3d96a7f68f6deff94d52b66
Treat a partially visible line like "cursor off screen".
(make_cursor_line_fully_visible): Don't try short scrolls.
Instead just return 0 when there is something to be done.
(try_scrolling): If make_cursor_line_fully_visible returns 0,
retry scrolling as if cursor were off the bottom.
(try_cursor_movement): If make_cursor_line_fully_visible returns 0,
return CURSOR_MOVEMENT_MUST_SCROLL.
(redisplay_window): If make_cursor_line_fully_visible returns 0,
go to try_to_scroll.
src/xdisp.c